<template>
	<view>
		<u-popup :show="isShow" :round="round" mode="center" @close="isShow=false">
			<view class="orderPop">
				<slot></slot>
				<view class="btn" @tap="understood">
					<text>{{btnText}}</text>
				</view>
			</view>
		</u-popup>
	</view>
</template>

<script>
	export default {
		name: "orderPop",
		props: {
			btnText: {
				type: String,
				default: '我知道了',
			},
			round: {
				type: Number,
				default: 24,
			},
		},
		data() {
			return {
				isShow: false,
			};
		},
		methods: {
			open() {
				this.isShow = true
			},
			understood() {
				this.isShow = false
			}
		}
	}
</script>

<style lang="scss" scoped>
	.orderPop {
		.btn {
			width: 560rpx;
			margin: 0 auto;
			height: 108rpx;
			border-radius: 60rpx;
			background: linear-gradient(90deg, rgba(11, 193, 150, 1) 0%, rgba(28, 232, 133, 1) 100%);
			box-shadow: 0rpx 18rpx 18rpx rgba(11, 193, 150, 0.25);
			display: flex;
			justify-content: center;
			align-items: center;
			font-size: 36rpx;
			color: #fff;
			margin-bottom: 64rpx;
		}
	}
</style>